public class Sum {
    public void plusInt(int i1, int i2) {
        System.out.println(i1 + i2);
    }

    public void plusLong(long l1, long l2) {
        System.out.println(l1 + l2);
    }

    public void plusFloat(float f1, float f2) {
        System.out.println(f1 + f2);
    }

    public void plusDouble(double d1, double d2) {
        System.out.println(d1 + d2);
    }

    /*public long(返回值) plus(long l1, long l2) {
        long result = a + b;
        return(令**返回为上面的返回值) result
        或直接
        return a + b;
    }*/

    /*public void plus(float f1, float f2) {
        System.out.println(f1 + f2);
    }

    public void plus(double d1, double d2) {
        System.out.println(d1 + d2);
    }*/
}
